/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-9-28 上午10:50 Created by dwzhang
 */
package com.jade.bss.weixin.api.card.protocol;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.jade.bss.weixin.api.card.CardConstants;

/**
 * 团购券。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-9-28 上午10:50
 */
public class Groupon
        extends Card
{
    @JsonProperty ("groupon")
    private GrouponInfo info;

    public Groupon()
    {
        setCardType(CardConstants.CARD_TYPE_GROUPON);
    }

    @Override
    public <T extends CardInfo> T getInfo()
    {
        return (T) info;
    }

    public void setInfo(GrouponInfo info)
    {
        this.info = info;
    }
}
